<html>
 <head>
  <title>Test Page for Evalactipol</title>
  
  <script type="text/javascript" src="./../jsunit/app/jsUnitCore.js"></script>
  <script language="javascript" src="../ajax.js"></script>
  <script language="javascript" src="../interface.js"></script>
 </head>
 <body>
  <script language="javascript">
    /*function testWithValidArgs_GetResult() {
        assertEquals("2 times 3 plus 5 is 11", 11, multiplyAndAddFive(2, 3));
        assertEquals("Should work with negative numbers", -15, multiplyAndAddFive(-4, 5));
    }
    function testWithInvalidArgs_GetResult() {
        assertNull("A null argument should result in null", multiplyAndAddFive(2, null));
        assertNull("A string argument should result in null", multiplyAndAddFive(2, "a string"));
    }*/
    function testStrictReturnType_GetResult() {
        assertNotEquals("Should return a string, not a number", "string", GetResult("http://localhost/evalactipol/library/php/ExeAjax.php?f=GetDataOneDepart&numDepartement=01"));	
		//assertNotEquals("Should return a string, not a number", "Reception erreur", GetResult("1"));	
    }
	
    function testWithUndefinedValue_GetResult() {
		
		assertNull("An undefined argument should result in null", GetResult(JSUNIT_UNDEFINED_VALUE));
    }
	function testWithUndefinedValue_ChargeTreeFromAjax() {
		
		assertNull("An undefined argument should result in null", ChargeTreeFromAjax("GetTree_load","treeFrance","France"));
    }
  </script>
 </body>
</html>
